package com.linkhub.oms.admin.modules.weighing.domain.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @author Jaycle
 * @version 1.0.0
 * @Description WeighingPackagePicResponse.java
 * @createTime 2024/10/02 21:34
 */
@Data
@EqualsAndHashCode(callSuper = false)
@NoArgsConstructor
public class WeighingPackagePicResponse implements Serializable {

    @ApiModelProperty("true or false")
    private String result;

    @ApiModelProperty("详细消息")
    private String message;

    public static WeighingPackagePicResponse createFailedResult() {
        WeighingPackagePicResponse weighingPackageInfoResponse = new WeighingPackagePicResponse();
        weighingPackageInfoResponse.setResult("false");
        weighingPackageInfoResponse.setMessage("图片上传阿里云失败");
        return weighingPackageInfoResponse;
    }

    public static WeighingPackagePicResponse createSuccessResult() {
        WeighingPackagePicResponse weighingPackageInfoResponse = new WeighingPackagePicResponse();
        weighingPackageInfoResponse.setResult("true");
        return weighingPackageInfoResponse;
    }

}
